package com.woniu.rear.maintenance.business.facade.client;

import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import com.woniu.rear.comm.core.dto.ResponseEntity;
import com.woniu.rear.comm.web.feign.FeignBaseConfig;
import com.woniu.rear.maintenance.business.facade.dto.HousingMaterialDto;
import com.woniu.rear.maintenance.business.facade.param.SaveHousingMaterialParam;

@FeignClient(name = "maintenance-data-service",configuration = FeignBaseConfig.class)
@RequestMapping("/maintenance-data")
public interface HousingMaterialFacade {
	
	@GetMapping("/list")
	public ResponseEntity<List<HousingMaterialDto>> list();
	
	@PostMapping("/save")
	public ResponseEntity<?> save(@SpringQueryMap SaveHousingMaterialParam saveHousingMaterialParam);

}
